package com.pay.game.central.web.service;

import com.pay.game.central.web.mapper.TestMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TestService {

    private final Logger logger = LoggerFactory.getLogger(TestService.class);

    @Autowired
    TestMapper testMapper;

    public void logStoreOrderLimit(String goodsId){
        Map map = testMapper.getStoreOrderLimit(goodsId);
        logger.error("limit : times -> " + map.get("limit") + " : " + map.get("times"));
    }

}
